<!DOCTYPE html>
<html>

<head>
	<title>我的资料</title>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<link rel="stylesheet" href="../js/bootstrap/css/bootstrap.min.css">
	<script src="../js/jquery/jquery.min.js"></script>
	<link rel="stylesheet" href="../css/font/css/font-awesome.min.css" />
	<link rel="stylesheet" href="../css/reset.css" />
	<link rel="stylesheet" href="../css/myProfiles.css" />
	<script src="../js/plugins/jrender/jrender.min.js"></script>
	<link rel="stylesheet" href="../Animate/animate.min.css">

	<script>
		$(function () {
            var user = JSON.parse(sessionStorage.getItem('user'));
            $(".info").renderValues(user);
            var address = $('#creditShop').data('href') + user.id;
            $('#creditShop').attr('href', address)

            $('#myOrder').click(function () {
                $(this).attr('href', '/order.html?userId=' + user.id);
            })

            //我的积分回显
            $.get('/users/' + user.id+ '/credits', function (data) {
                if (data) {
                    var myCredit = data.credit;
                    $('#myCredit').html(myCredit);
                }
            })
        });
	</script>




	<style type="text/css">
		.my{
			background:url(../jQuery-bg20160907/img/9.jpg);
		}
	</style>


</head>

<body>
<div class="my">

	<div class="nav-search">
			<a href="/index.html">
				<span><i class="fa fa-angle-left fa-2x" ></i></span>
			</a>
	</div>
	<hr/>


<hr/>
<div class="container">
    <div class="row info">
        <div class="col-2" style="margin-right: 25px;">
            <img class="rounded-circle" render-src="headImgUrl">
        </div>
        <div class="col-8">
            <h5 render-html="nickName"></h5>
            <ul class="list-inline">
                <li class="list-inline-item">
                    <small>常住地</small>
                </li>
                <li class="list-inline-item">
                    <small render-html="place"></small>
                </li>
                <li class="list-inline-item">
                    <small>关注<span>0</span></small>
                </li>
                <li class="list-inline-item">
                    <small>粉丝<span>0</span></small>
                </li>
            </ul>
        </div>
    </div>

    <div class="d-flex setting">
        <div class="p-2 flex-fill">
            <a href="/mine/editTravels.html">
                <button class="btn">
                    <i class="fa fa-camera fa-fw"></i>
                    记录我的旅游日记
                </button>
            </a>
        </div>
        <div class="p-2 flex-fill">
            <a href="info.html">
                <button class="btn">编辑个人资料</button>
            </a></div>
    </div>

</div>

<hr/>

<div class="row link-box">
    <div class="col">
        <ul class="list-inline">
            <li class="list-inline-item"><i class="fa fa-shopping-bag fa-2x"></i></li>
            <li class="list-inline-item">
                <a data-href="/creditShop.html?userId=" class="animated fadeInDown sign"
                   id="creditShop">
                    <h7>积分商城</h7>
                </a>
                <small>我的积分 <span id="myCredit"></span></small>
            </li>
        </ul>

	</div>
	<div class="col ">
		<ul class="list-inline">
			<li class="list-inline-item"> <i class="fa fa-calendar-check-o fa-2x"></i> </li>
			<li class="list-inline-item ">
				<a href="/mine/signpage.html" class="animated fadeInDown sign"><h7>每日签到</h7></a>
				<small>别忘了签到哦</small></li>
		</ul>
	</div>
</div>
<hr />
<ul class="mainmenu">
	<li><a href="/mine/myFavorites.html" ><b><i class="fa fa-star fa-2x"></i></b><span>我的收藏</span></a></li>
	<li><a href="#" ><b><i class="fa fa-commenting-o fa-2x"></i></b><span>我的评论</span></a></li>
	<li><a href="/mine/travels.html" ><b><i class="fa fa-book fa-2x"></i></b><span>我的游记</span></a></li>
	<li><a href="#" ><b><i class="fa fa-list-ul fa-2x"></i></b><span>我的心愿单</span></a></li>
	<li><a href="/mine/message.html" ><b><i class="fa fa-bullhorn fa-2x"></i></b><span>我的消息</span></a></li>
	<li><a href="javascript:;" id="myOrder"><b><i class="fa fa-file-text fa-2x"></i></b><span>我的订单</span></a></li>
	<li><a href="/qianbao_index.html" ><b><i class="fa fa-briefcase fa-2x"></i></b><span>我的钱包</span></a></li>
	<li><a href="/mine/testmy.html" ><b><i class="fa fa-user-circle fa-2x"></i></b><span>私人订制</span></a></li>
	<li><a href="/hotelPage.html" ><b><i class="fa fa-hospital-o fa-2x"></i></b><span>酒店/民宿</span></a></li>
	<li><a href="/visa.html" ><b><i class="fa fa-plane fa-2x"></i></b><span>签证代办</span></a></li>
</ul>



	<div class="slideshow">
		<div class="slideshow-image" style="background-image: url('/jQuery-bg20160907/img/5.jpg')"></div>
		<div class="slideshow-image" style="background-image: url('/jQuery-bg20160907/img/2.jpg')"></div>
		<div class="slideshow-image" style="background-image: url('/jQuery-bg20160907/img/3.jpg')"></div>
		<div class="slideshow-image" style="background-image: url('/jQuery-bg20160907/img/4.jpg')"></div>
	</div>


</div>
</body>



</html>